import request from '@/utils/request'

function getToken() {
  const token = localStorage.getItem('token')
  return token
}

export const loadConfigList = () => {
  return request('/hzsx/platform/config/list', {
    method: 'GET',
    headers: {
      token: getToken()
    }
  })
}

export const updateConfigById = data => {
  return request('/hzsx/platform/config/update', {
    method: 'POST',
    data,
    headers: {
      token: getToken()
    }
  })
}
